package etnorservice.etnor_service.exception;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: cc
 * @Date: 2024/08/27/9:26
 **/


public class UnauthorizedException extends RuntimeException {
    private final int errorCode;

    public UnauthorizedException(int errorCode, String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public int getErrorCode() {
        return errorCode;
    }
}
